<template>
  <div class="ribbon-bar" :style="ribbonStyle">
    <slot></slot>
  </div>
</template>
<script setup>
defineProps({
  ribbonStyle: {
    type: String,
    default: ''
  }
})
</script>
<style lang="scss" scoped>
.ribbon-bar {
  width: 60px;
  height: 18px;
  background: var(--bg-primary, #409eff);
  transform: rotate(-40deg);
  padding: 0 13px;
  font-size: 12px;
  text-align: center;
  position: absolute;
  top: 3px;
  left: -15px;
  line-height: 18px;
  z-index: 9;
  color: #fff;
}
</style>
